package xjtu.sad.zbsj.user.pesonal;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author lkm
 */
@Getter
@Setter
public class PersonalDto {
    private String u_id;
    private String u_name_new;
    private String u_pwd_new;
    private Integer u_sex_new;//1男0女
    private String u_eml_new;//邮箱
    private String token;

    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @DateTimeFormat(pattern = "yyyy-MM-dd") //说明接收日期数据的格式
    private Date u_birth_new;

    public String getU_id() {
        return u_id;
    }

    public void setU_id(String u_id) {
        this.u_id = u_id;
    }

    public String getU_name_new() {
        return u_name_new;
    }

    public void setU_name_new(String u_name_new) {
        this.u_name_new = u_name_new;
    }

    public String getU_pwd_new() {
        return u_pwd_new;
    }

    public void setU_pwd_new(String u_pwd_new) {
        this.u_pwd_new = u_pwd_new;
    }

    public Integer getU_sex_new() {
        return u_sex_new;
    }

    public void setU_sex_new(Integer u_sex_new) {
        this.u_sex_new = u_sex_new;
    }

    public String getU_eml_new() {
        return u_eml_new;
    }

    public void setU_eml_new(String u_eml_new) {
        this.u_eml_new = u_eml_new;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getU_birth_new() {
        return u_birth_new;
    }

    public void setU_birth_new(Date u_birth_new) {
        this.u_birth_new = u_birth_new;
    }
}
